import request from "@/utils/request";

export function getDish(params) {
  return request({
    url: "/dish/page",
    method: "get",
    params,
  });
}
export function changeDishStatus0(params) {
  return request({
    url: "dish/status/0",
    method: "post",
    params,
  });
}
export function changeDishStatus1(params) {
  return request({
    url: "dish/status/1",
    method: "post",
    params,
  });
}
export function deleteDish(params) {
  return request({
    url: "dish",
    method: "delete",
    params,
  });
}
export function getCategory(params) {
  return request({
    url: "category/list",
    method: "get",
    params,
  });
}
